package com.xl.xkit.consts

import org.json.JSONObject

internal class MK private constructor() {
    companion object {
        /**
         * cpu
         */
        const val PERFORMANCE_TYPE_CPU = "cpu"

        /**
         * memory
         */
        const val PERFORMANCE_TYPE_MEMORY = "memory"

        /**
         * fps
         */
        const val PERFORMANCE_TYPE_FPS = "fps"

    }
}

fun getJson(vararg params: Pair<String, Any>): JSONObject {
    var json = JSONObject()
    params.forEach { (key, value) ->
        run {
            json.put(key, value)
        }
    }
    return json
}